﻿using System;
using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.Windows;
using HTR.Views;

namespace HTR
{
    public class HTRApp : IExtensionApplication
    {

        static public PaletteSet ps = null;
        static PpalView mainWin = null;

        [CommandMethod("Htr")]
        public static void Htr()
        {
            if (ps == null)
            {
                ps = new PaletteSet("HTR");
                mainWin = new PpalView();
                ps.AddVisual("HTR", mainWin);
            }
            ps.Visible = true;
        }

        #region IExtensionApplication Members

        public void Initialize()
        {
            Htr();
        }

        public void Terminate()
        {

        }

        #endregion

    }
}
